package general.dbClass;

public class DBPicData {
	private int		nr;
	private byte[] 	data;
	private int 	size;
	
	public DBPicData() {
		this.nr		= 0;
		this.data 	= null;
		this.size 	= 0;
	}
	
	public DBPicData(int nr) {
		this.nr		= nr;
		this.data 	= null;
		size		= 0;
	}
	
	public DBPicData(int nr,byte[] data) {
		this.nr		= nr;
		this.data 	= data;
		this.size 	= data.length;
	}

	
	/**
	 * @param data the data to set
	 */
	public void setData(byte[] data) {
		this.data = data;
		this.size = data.length;
	}
	/**
	 * @return the data
	 */
	public byte[] getData() {
		return data;
	}
	/**
	 * @param size the size to set
	 */
	public void setSize(int size) {
		this.size = size;
	}
	/**
	 * @return the size
	 */
	public int getSize() {
		return size;
	}

	/**
	 * @param nr the nr to set
	 */
	public void setNr(int nr) {
		this.nr = nr;
	}

	/**
	 * @return the nr
	 */
	public int getNr() {
		return nr;
	}
}

